package com.ruoyi.web.article.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章对象 train_article
 *
 * @author 范书铭
 * @date 2024-10-13
 */
@ApiModel(value =  "文章",description = "")
@TableName(resultMap = "com.ruoyi.web.article.mapper.TrainArticleMapper.TrainArticleResult")
@Data
@EqualsAndHashCode(callSuper = true)
public class TrainArticle extends BaseEntity{
private static final long serialVersionUID = 1L;

        /** $column.columnComment */
            @TableId(value = "id",type = IdType.AUTO)
        private Long id;

        /** 纹章标题 */
                @ApiModelProperty(name = "纹章标题",notes = "")
                @Excel(name = "纹章标题")
        private String title;

        /** 作者 */
                @ApiModelProperty(name = "作者",notes = "")
                @Excel(name = "作者")
        private String author;

        /** 阅读次数 */
                @ApiModelProperty(name = "阅读次数",notes = "")
                @Excel(name = "阅读次数")
        private Long readTimes;

        /** 内容 */
                @ApiModelProperty(name = "内容",notes = "")
                @Excel(name = "内容")
        private String content;

@Override
public String toString() {
    return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
        .append("id", getId())
        .append("title", getTitle())
        .append("author", getAuthor())
        .append("readTimes", getReadTimes())
        .append("content", getContent())
        .append("createBy", getCreateBy())
        .append("createTime", getCreateTime())
        .append("updateBy", getUpdateBy())
        .append("updateTime", getUpdateTime())
        .append("remark", getRemark())
            .toString();
}
        }